/**
 * 考试其他功能整合js文件
 * @author HuangS
 * @version 1.0
 */
function formatStr(str){
    var strs = str;
    var lengths = 7;
    if (/.*[\u4e00-\u9fa5]+.*$/.test(strs)) 
        lengths = 7;
    if (strs.length > lengths) {
        strs = strs.substring(0, lengths) + "...";
    }
    return strs;
}

document.domain = "bjfsh.gov.cn";
